﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing {
    import flash.display.*;

    public class Cursor {

        public static var H_RESIZE_CURSOR:String = "System.hResizeCursor";
        public static var V_RESIZE_CURSOR:String = "System.vResizeCursor";
        public static var H_MOVE_CURSOR:String = "System.hMoveCursor";
        public static var V_MOVE_CURSOR:String = "System.vMoveCursor";
        public static var HV_RESIZE_CURSOR:String = "System.hvResizeCursor";
        public static var HV_MOVE_CURSOR:String = "System.hvMoveCursor";

        public static function createCursor(_arg1:String):DisplayObject{
            var _local3:Sprite;
            var _local2:DisplayObject = (UIManager.getInstance(_arg1) as DisplayObject);
            if (_local2 == null){
                return (null);
            };
            if ((_local2 is Bitmap)){
                _local3 = AsWingUtils.createSprite(null, "bmCursorAdap");
                _local3.addChild(_local2);
                _local2.x = (-(_local2.width) / 2);
                _local2.y = (-(_local2.height) / 2);
                return (_local3);
            };
            return (_local2);
        }

    }
}//package org.aswing 
